package com.xms.security.identity;

import com.xms.core.org.UserContext;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.UUID;

/**
 * <p>
 * 当前用户上下文
 * </p>
 *
 * @author migo
 * @since 2021/9/1
 */
public interface ICurrentUser {
    UserContext getUser();

    boolean isAdministrator();

    List<UUID> getRoles();

    String getSessionId();

    HttpServletRequest getRequest();
}
